package ControlLayer;
import java.util.ArrayList;
import ModelLayer.Statistics;
import ModelLayer.RealException;

public class StatisticsCtr {

	private Statistics statistics;
	
	public  StatisticsCtr()
	{
		statistics=new Statistics();
	}

	public ArrayList<String> printStatisticsCustomer(int id, int month, int year) throws RealException
	{
		return statistics.printCustomerStatistics(id, month, year);
	}
	
	public double getTotalCustomer(int id, int month, int year)  throws RealException
	{
		return statistics.getTotalPriceCustomer(id, month, year);
	}
	
	public ArrayList<String> printStatisticsEmployee(int id, int month, int year) throws RealException
	{
		return statistics.printSalesmanStatistics(id, month, year);
	}
	
	public double getTotalEmployee(int id, int month, int year)  throws RealException
	{
		return statistics.getTotalPriceSaleman(id, month, year);
	}
}
